package com.hao.nettyrpc.test.server;

import com.hao.nettyrpc.annotation.Service;
import com.hao.nettyrpc.api.HelloObject;
import com.hao.nettyrpc.api.HelloService;
import lombok.extern.slf4j.Slf4j;

/**
 * @author haoge
 * @version 1.0
 * @date 2023/4/10 22:51
 */
@Service
@Slf4j
public class HelloServiceImpl implements HelloService {
    @Override
    public String hello(HelloObject object) {
        log.info("接收到:{}",object.getMessage());
        return "这是调用的返回值, id="+object.getId();
    }
}
